﻿using Mall.Infrastructure.Encrypt;
using Mall.Infrastructure.Model;
using Mall.Infrastructure.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sx.Mall.Domain
{
   public partial class MallUser
    {
       /// <summary>
       /// 用户注册
       /// </summary>
       /// <param name="repository"></param>
       /// <param name="entity"></param>
       /// <returns></returns>
       public static CommonResult Add(IRepository<MallUser> repository, MallUser entity)
       {
           CommonResult result = new CommonResult();
           repository.Add(entity);
           result.IsResult = true;
           return result;
       }

      
    }
}
